package com.ml.mall.service.variant;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ml.mall.entity.variant.SysProductVariantSku;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author kyyang
 * Created 2021-05-18
 */
public interface SysProductVariantSkuService extends IService<SysProductVariantSku> {

    //获取当前变体的sku
    SysProductVariantSku getSkuByVariantId(Long variantId);

    //更改库存
    void changeInventory(Long variantId, Integer quantity);
}
